<?php

namespace app\admin\controller;

use app\admin\service\MediaAssetService;
use app\common\Common;
use app\model\VideoAuditRecords;
use app\Request;

class ThirdAuditRecord extends Base
{
    public $service;

    public function __construct(MediaAssetService $service)
    {
        parent::__construct();
        $this->service = $service;
    }

    public function index()
    {
        return view();
    }

    public function list(Request $request)
    {
        $params = $request->param();
        $data = $this->service->auditList($params);

        return Common::success($data);
    }

    public function detail()
    {
        return view();
    }

    public function viewList(Request $request)
    {
        $params = $request->param();
        if (empty($params['id'])) {
            return Common::fail('参数错误', 404);
        }

        $data = $this->service->auditViewList($params);

        return Common::success($data);
    }
}